#ifndef TRANSMITTANCE_H
#define TRANSMITTANCE_H

#include <QWidget>
#include <QLineEdit>
#include "serialcontrol.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Transmittance; }
QT_END_NAMESPACE

class Transmittance : public QWidget
{
    Q_OBJECT

public:
    Transmittance(QWidget *parent = nullptr);
    ~Transmittance();

    void receive(SerialControl::FrameType frameType, QVector<double> frameValue);

private:
    void setTransmitCurve(const QVector<double>& curveValue);

    Ui::Transmittance *ui;
    SerialControl serialControl;
    QMap<SerialControl::FrameType, QLineEdit*> frameTypeEdit;
};
#endif // TRANSMITTANCE_H
